<template>
    <div class="header">
        <div class="headerLeft">
            <div class="iconfont back-icon">&#xe743;</div>
        </div>
        <div class="headerInput">
            <span class="iconfont">&#xe627;</span>
            输入城市/景点/游玩主题
        </div>
        <router-link to="/city">
          <div class="headerRight">
            {{this.$store.state.city}}
            <span class="iconfont arrow-icon">&#xe64a;</span>
          </div>
        </router-link>
    </div>
</template>

<script>
export default {
  name: 'HomeHeader'
}
</script>

<style lang="stylus" scoped>
  @import '~@/assets/styles/varibles.styl'
  .header
    background: $bgcolor
    display: flex
    line-height: .86rem
    color: #fff
    .headerLeft
      width: .64rem
      float: left
      .back-icon
        font-size: .6rem
        text-align: center
    .headerRight
      min-width: 1.04rem
      padding: 0 .1rem
      float: right
      text-align: center
      color: #fff
      .arrow-icon
        font-size: .2rem
        margin-left: -.05rem
    .headerInput
      flex: 1
      height: .64rem
      line-height: .64rem
      margin-top: .12rem
      margin-left: .2rem
      padding-left: .2rem
      background: #fff
      border-radius: .1rem
      color: #ccc
</style>
